import './assets/main.css'
import 'virtual:uno.css'
import { createApp } from 'vue'
import router from './router'
import 'vfonts/Lato.css'
// 等宽字体
import 'vfonts/FiraCode.css'
import App from './App.vue'
import pinia from './stores'
async function setupApp() {
  if (import.meta.env.DEV) {
    const { worker } = await import('./mocks/server')
    await worker.start({
      onUnhandledRequest: 'bypass'
    })
  }

  const app = createApp(App)
  app.use(pinia)
  app.use(router)
  app.mount('#app')
}

setupApp()
